package com.liu.netty.entity;

import lombok.Data;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import javax.persistence.*;

@Getter
@Setter
@NoArgsConstructor
@Entity
@Table(name="sx_runInfo")
public class RunInfo {
     @Id
      private String id;
      @ManyToOne(fetch = FetchType.EAGER)
      @JoinColumn(name = "dr_id")
      private Driver driver;
      private String dateTime;
      private String runCode;

}
